﻿@model GPS.MODELS.SelectUserGroupsViewModel
@{ ViewBag.Title = "User Groups"; }



<div class="container fdb-div-content fdb-div-corner-all">
    <h3 class="text-center fdb-title-search-form">Tên đăng nhập: @Html.DisplayFor(model => model.UserName)</h3>
    @using (Html.BeginForm("UserGroups", "Account", FormMethod.Post, new { encType = "multipart/form-data", name = "myform" }))
    {
        <fieldset class="fs_body">
            <legend class="head_title">Chọn các nhóm @ViewBag.TenTTP gán cho người dùng @Html.DisplayFor(model => model.UserName)</legend>
            @Html.AntiForgeryToken()
            <div class="form-horizontal">
                @Html.ValidationSummary(true)
                @Html.HiddenFor(model => model.UserName)
                <table>
                    <tr>
                        <th>
                            Chọn
                        </th>
                        <th>
                            Nhóm
                        </th>
                    </tr>
                    @Html.EditorFor(model => model.Groups)
                </table>

            </div>
        </fieldset>

    <div class="row form-group Action_FormDetail">
        <div class="col-md-12">
            <button type="submit" class="btn btn-danger btn-sm">
                <span class="glyphicon glyphicon-floppy-disk"></span> Cập nhật
            </button>
            &nbsp;
            @Html.ActionLink("Quay lại", "Index", "Account", null, new { @class = "btn btn-primary btn-sm" })
        </div>
    </div>
    }
</div>